::-----------------------------------------------------------------
:: Batch→ 启动服务
:: Author→ xiezhen
:: Date create→2023/03/21
::-----------------------------------------------------------------

@echo off
setlocal enabledelayedexpansion
color 3F

:ChooseHandle
echo ┌─────────────────────┐
echo ::   1、启动    → 1   ::
echo ::   4、退出    → 4   ::
echo └─────────────────────┘

echo.
:InputChoice
echo ------------Do your choice-----------------
set /p chs=Please input ur choice :
echo ------------End of Choice------------------
echo.

if %chs% EQU 1  goto startserver
if "%chs%"=="4" (
 goto End
) else (
 echo Wrong choice, Please input ur choice again !
 goto InputChoice
)

:startserver
echo ------------startserver-----------------
java -jar csl-purchase-inventory-1.0.0.jar &
echo ------------startserver------------------
echo.
echo.

goto EndOfChoice

:EndOfChoice
goto ChooseHandle

:End
exit
